<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>tree</title>
  <link rel="stylesheet" href="./yiyou.css">
  <link rel="stylesheet" href="./css/layui.css">
  <script src="./jquery-3.5.1.min.js"></script>
  <script src="./layui.js"></script>
</head>

<body>
  <div id="wrap"></div>
  <script src="tree2.js"></script>
  <script src="./data.js"></script>
  <script>
    console.log(dataObj)
    createTree(dataObj, $('#wrap'))
  </script>
</body>

</html>